package com.lh.pattern.obvious;

/**
 ************************************************
 ** Module : 客服端类
 ** Date: 2012-10-19  Time: 下午03:18:58 
 ** Author lh 
 ************************************************ 
 */
public class Clien {
	public static void main(String[] args) {
		Subject sub = new ConcreteSubject();

		Observer obs1 = new ConcreteObserver();
		Observer obs2 = new ConcreteObserver();
		Observer obs3 = new ConcreteObserver();

		sub.add(obs1);
		sub.add(obs2);
		sub.add(obs3);

		sub.notify("这是一个通知");

		sub.delete(obs2);
		sub.notify("我删除一个观察者");

	}
}
